const http = require('http');

let serve = http.createServer((res,req)=>{
    req.setHeader('content-type','text/html;charset=utf-8')
    req.end('你好nodejs')
})

serve.listen(1086, ()=>{
    console.log('服务开启成功');
})